package com.smxy.daydayup.mapper;

import com.smxy.daydayup.pojo.CourseTalk;
import com.smxy.daydayup.pojo.dto.TalkInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Mapper
public interface CourseTalkMapper {
    int deleteByPrimaryKey(Long courseTalkId);

    int insert(CourseTalk record);

    int insertSelective(CourseTalk record);

    CourseTalk selectByPrimaryKey(Long courseTalkId);

    int updateByPrimaryKeySelective(CourseTalk record);

    int updateByPrimaryKey(CourseTalk record);

    List<TalkInfo> selectAllTalk(@Param("sectionId") Integer sectionId);

    List<TalkInfo> selectReply(@Param("courseTalkNumber") String courseTalkNumber);
}